package com.jerry.shop.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

public interface RedisLockService {

    //加锁
    public boolean lock(String key , String value);
    //解锁
    public void unlock(String key , String value);

}
